﻿import request from '/@/utils/request';
enum Api {
  AddPlatformLog = '/api/platformLog/add',
  DeletePlatformLog = '/api/platformLog/delete',
  UpdatePlatformLog = '/api/platformLog/update',
  PagePlatformLog = '/api/platformLog/page',
  DetailPlatformLog = '/api/platformLog/detail',
}

// 增加平台通信日志
export const addPlatformLog = (params?: any) =>
	request({
		url: Api.AddPlatformLog,
		method: 'post',
		data: params,
	});

// 删除平台通信日志
export const deletePlatformLog = (params?: any) => 
	request({
			url: Api.DeletePlatformLog,
			method: 'post',
			data: params,
		});

// 编辑平台通信日志
export const updatePlatformLog = (params?: any) => 
	request({
			url: Api.UpdatePlatformLog,
			method: 'post',
			data: params,
		});

// 分页查询平台通信日志
export const pagePlatformLog = (params?: any) => 
	request({
			url: Api.PagePlatformLog,
			method: 'post',
			data: params,
		});

// 详情平台通信日志
export const detailPlatformLog = (id: any) => 
	request({
			url: Api.DetailPlatformLog,
			method: 'get',
			data: { id },
		});


